package com.appbee.user.client;

import javax.inject.Inject;

import com.appbee.user.shared.proxy.WebUserProxy;

public class AccessControl
{
	private WebUserProxy webUser;

	@Inject
	public AccessControl(WebUserProxy webUser)
	{
		this.webUser = webUser;
	}

	public boolean isMemberOrAdmin()
	{
		return webUser == null ? false : (webUser.getAdmin() || webUser
				.getMember() != null);

	}

}
